<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var str="http://localhost:8080/ABC/hello/list/select1.do?id=1&name='张三'";
			   /*   var str = location.href;*/
          	var num = str.indexOf("?");
          	var data=[];
          	str = str.substr(num + 1);
          	var arr = str.split("&");
          	for (var i = 0; i < arr.length; i++) {
          		num = arr[i].indexOf("=");
          		if (num > 0) {
          			name = arr[i].substring(0, num);
          			value = arr[i].substr(num + 1);
          			this[name] = value;
          			console.info(value);
          		
          		
          		}
          	}

          
		</script>
	</body>
</html>
